import request from "@/request/api";

//评级标准接口
//1.评级标准查询接口
export function queryRatingList(data) {
  return request({
    url: "/eam-service-standard/rating/page",
    method: "get",
    params: data,
  });
}
//1.根据id查询标准详情
export function queryRatingDetail(data) {
  return request({
    url: "/eam-service-standard/rating",
    method: "get",
    params: data,
  });
}
//2、评级标准新增接口
export function addRating(data) {
  return request({
    url: "/eam-service-standard/rating",
    method: "post",
    data: data,
  });
}
//2、评级标准修改接口
export function updateRating(data) {
  return request({
    url: "/eam-service-standard/rating",
    method: "put",
    data: data,
  });
}
//3、评级标准删除接口
export function deleteRating(data) {
  return request({
    url: "/eam-service-standard/rating",
    method: "delete",
    params: data,
  });
}
//品级标准导入
export function ratingImport(data,formData) {
  return request({
    url: "/eam-service-standard/rating/import",
    method: "post",
    params: data,
    data: formData
  });
}
//设置标准状态
export function setStandardStatus(data) {
  return request({
    url: "/eam-service-standard/rating/updateStatus",
    method: "put",
    params: data,
  });
}
//设置为公共标准
export function setCommonStandard(data) {
  return request({
    url: "/eam-service-standard/rating/updateToPublic",
    method: "put",
    params: data,
  });
}